package com.bit.forum.services;

import com.bit.forum.model.User;
import org.apache.ibatis.annotations.Param;

public interface IUserService {
    void createNormalUser(User user);

    /**
     *
     * @param username
     * @return
     */
    User selectByUserName(String username);
    User login (String username,String password);
    User selectById(Long id);
    void addOneArticleCountById(Long id);
    void subOneArticleCountById(Long id);
    void modifyInfo (User user);
    void modifyPassword (Long id, String newPassword, String oldPassword);
}
